﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SilverPOP.Library.BusinessEntities
{
    public class SummaryReport
    {
        public long BlastID { get; set; }
        public long SegmentID { get;set; }
        public long MailingID { get; set; }
        public int SentCount { get; set; }
        public int BouncedCount { get; set; }
        public int OpenedCount { get; set; }
        public int ClickedCount { get; set; }
        public int OptOutCount { get; set; }
        public int UniqueOpen { get; set; }
        public int UniqueClick { get; set; }
        public String ErrorMessage { get; set; }

        public SummaryReport(long blastId,long segmentId, long mailingId,int sent,int bounced,int opened,int clickd,int optOut)
        {
            this.BlastID = blastId;
            this.SegmentID = segmentId;
            this.MailingID = mailingId;
            this.SentCount = sent;
            this.BouncedCount = bounced;
            this.OpenedCount = opened;
            this.ClickedCount = clickd;
            this.OptOutCount = optOut;
            this.ErrorMessage = String.Empty;
        }

        public SummaryReport(long blastId, long segmentId, long mailingId, int uniqueOpen, int uniqueClick)
        {

            this.BlastID = blastId;
            this.SegmentID = segmentId;
            this.MailingID = mailingId;
            this.UniqueOpen = uniqueOpen;
            this.UniqueClick = uniqueClick;
            this.ErrorMessage = String.Empty;
        }

        public SummaryReport(String errorMessage)
        {
            this.ErrorMessage = errorMessage;
        }

        public SummaryReport()
        {

        }
    }//end class
}
